CFLAG = -std=c++11 -I../../src/third_part -I../../src/third_part/muduo/include
LFLAG = -L ../../src/third_part/muduo/lib -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz -lsqlite3

connection : connection.cc ../../src/common/message.pb.cc ../../src/common/protocol.pb.cc ../../src/third_part/proto/codec.cc
	g++ -g -o $@ $^ $(CFLAG) $(LFLAG)

.PHONY : clean
clean:
	rm -rf connection